<template>
    <div class="login">
        <div class="bg"></div>
        <div class="login_content">
            <div class="no">取消</div>
            <div class="login-select">
                <div class="vChar" @click="goCharLogin"></div>
            </div>
            <div class="QQ" @click="goQQLogin"></div>
            <div class="phone" @click="phoneLogin"></div>
        </div>

    </div>
</template>

<script>
import {mapMutations} from "vuex"
export default {
    name: "Login",
    methods: {
        ...mapMutations(['setIsMain']),
        goCharLogin(){
            this.setIsMain(false)
        },
        goQQLogin(){
            this.setIsMain(false)
        },
        phoneLogin() {
            this.setIsMain(false)
            this.$router.push({ name: "GoLogin" })
        },
    }


}
</script>

<style lang="less" scoped>
.login {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    color: #fff;

    .bg {
        left: 13%;
        position: absolute;
        width: 70%;
        height: 80%;
        background: url("../../public/images/login/QQ图片20221214211121.jpg") no-repeat center center;
        background-size: 100% 100%;
        z-index: 1;
        transform: scale(1.5);
        transform-origin: center center;


    }

    .login_content {
        position: relative;
        z-index: 3;
        height: 100%;

        .no {
            margin: 10px 20px;
            font-size: 16px;
            color: #ccc;
        }


    }

    .login-select {
        margin-top: 363px;
    }

    .vChar {
        margin: 0px 10%;
        width: 76%;

        height: 41px;
        // background-color: pink;
    }

    .QQ {
        margin: 0px 10%;
        margin-top: 18px;
        width: 76%;
        height: 41px;
        // background-color: pink;
    }

    .phone {
        margin: 0px 10%;
        margin-top: 13px;
        width: 76%;
        height: 30px;
        // background-color: pink;
    }

}
</style>